#include <linux/pci.h>
#include <linux/platform_device.h> 
#include <linux/irq.h>  
#include <linux/log2.h> 
#include <linux/module.h>
#include <linux/moduleparam.h> 
#include <linux/slab.h> 
#include <linux/dmi.h> 
#include <linux/pci.h>
#include <linux/pm_runtime.h>
#include <acpi/acpi.h>
#include "pm_dbg.h"

/*  print dev runtime date
 *
*/
void print_dev_runtime_info(struct device *dev)
{
    if(dev_name(dev))
	    printk("%s: ---> ", dev_name(dev));
	printk("    bus:%s ", dev->bus->name);
    if(dev->bus && dev->bus->dev_name)
	    printk("bus_dev:%s \n", dev->bus->dev_name);
    else
        printk("\n");
    printk("	power -->disable_depth:%d usage_count:%d child_count:%d  timer_expires:%ld\n" 
	    , dev->power.disable_depth ,atomic_read(&dev->power.usage_count) , atomic_read(&dev->power.child_count), dev->power.timer_expires);
    printk(" runtime_auto:%d  autosuspend_delay:%d last_busy:%ld\n"
            , dev->power.runtime_auto ,dev->power.autosuspend_delay
            , dev->power.last_busy);
    printk("\n");
}
